require-coercible-to-string-x
Requires an argument is corecible then converts using ToString.
Version: 1.0.2
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750
module.exports(value)
⇒ string
⏏
This method requires an argument is corecible then converts using ToString.
Kind: Exported function
Returns: string
- The value as a string.
Throws:
TypeError
If value is null or undefined.
Param | Type | Description |
---|
value | * | The value to converted to a string. |
Example
var requireCoercibleToString = require('require-coercible-to-string-x');
requireCoercibleToString();
requireCoercibleToString(null);
requireCoercibleToString(Symbol(''));
requireCoercibleToString(Object.create(null));
requireCoercibleToString(1);
requireCoercibleToString(true);